
user = {};
user.login = Ti.App.Properties.getString("login",'');
user.password = Ti.App.Properties.getString("password",'');

user.save = function (save_login,save_password) {
	user.login = save_login;
	Ti.App.Properties.setString("login",save_login);
	
	user.password = save_password;
	Ti.App.Properties.setString("password",save_password);
};

user.isDefined = function (){ return user.login != "" && user.password != "";};
user.check = function (check_login,check_pasword){
	
	
};